<script setup lang="ts">
const props = defineProps({
  message: {
    type: String
  }
})
</script>

<template>
  <div class="msg-box">
    {{ props.message }}
  </div>
</template>

<style scoped lang="less">
.msg-box {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
  border-radius: 10px;
  max-width: calc(100% - 32px);
  transition: opacity 0.3s;
}
</style>